#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPainter>


#include <QMediaPlayer>
#include <QAudioOutput>        //实现音频播放


#include "choose.h"
#include <QPushButton>       //实现窗口跳转




class Game;
class Choose;


QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void paintEvent(QPaintEvent * event);



private slots:
    void on_pushButton_clicked();
private:
    Ui::Widget *ui;
    Choose *chooseWidget;
    QMediaPlayer *player;
    QAudioOutput *audioOutput;

};
#endif // WIDGET_H
